package com.nf.service;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

@Service  //(value = "aa")也可以通过注解的value属性来标识组件(实现类)的名称
public class TestServiceImpl implements TestService{

    public TestServiceImpl(){
        System.out.println("service实例创建了1"+this);
    }

    @Override
    public String kk() {
        return "ok1";
    }

    @Override
    public String CC() {
        return null;
    }

    @Override
    public void 转账() {
    }
}
